package com.skp.shaphan.io;

public class TabDelimitedDataWriter extends StringBasedDataWriter {

	@Override
	protected void writeHeadingCellData(String data) {
		if(isHeadingWritten()) {
			print("\t");
		}
		print(data);
	}

	@Override
	public void finishHeadings() {
		if(isHeadingWritten()) {
			println("");
		}
	}

	@Override
	protected void writeNewRowData() {
		if(isDataWritten()) {
			println("");
		}
	}

	@Override
	protected void writeCellData(String data, int columnNumber) {
		if(columnNumber > 1) {
			print("\t");
		}
		print(data);
	}

}
